package com.oocl.entity;

public class Book {

	private int bid;
	private String bname;
	private int price;
	private String picture;

	public Book() {
	}

	public Book(int bid, String bname, int price, String picture) {
		this.bid = bid;
		this.bname = bname;
		this.price = price;
		this.picture = picture;
	}

	public int getBid() {
		return bid;
	}

	public void setBid(int bid) {
		this.bid = bid;
	}

	public String getBname() {
		return bname;
	}

	public void setBname(String bname) {
		this.bname = bname;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + bid;
		return result;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Book other = (Book) obj;
		if (bid != other.bid)
			return false;
		return true;
	}	
}
